﻿<Window x:Class="StockAnalyst2.StockGrid.OptionsDialog"
		x:ClassModifier="internal"
		
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"

		xmlns:Utils="clr-namespace:Utils.Wpf;assembly=Utils"
		xmlns:Converters="clr-namespace:Utils.Wpf.Converters;assembly=Utils" 
		xmlns:SG="clr-namespace:StockAnalyst2.StockGrid"
        
		Title="Grid Options" 
        ResizeMode="NoResize" 
        SizeToContent="WidthAndHeight" 
		ShowInTaskbar="False" 
        WindowStartupLocation="CenterOwner" 
        Icon="/StockAnalyst2;component/Resources/Options.ico"
		
		Utils:AnimatorOnVisibilityChange.AnimationType="Fade"
		Utils:AnimatorOnVisibilityChange.Duration="1000"
		Utils:WindowBehavior.HideCloseButton="True"

        d:DataContext="{d:DesignInstance Type=SG:OptionsDialogVM}" >

	<Window.Resources>
		<ResourceDictionary>
			<Converters:MultiplierConverter x:Key="MultiplierConverter" />
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="../StockAnalystTheme.xaml" />
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</Window.Resources>

	<Window.Background>
		<StaticResource ResourceKey="WindowBackground" />
	</Window.Background>

	<StackPanel>
		<Border BorderBrush="White" BorderThickness="1" CornerRadius="10" Margin="3" >
			<Grid Margin="3" >
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>

				<TextBlock Grid.Row="1" Margin="3" VerticalAlignment="Center" Text="Symbol" x:Name="SizeReference" />
				<TextBlock Grid.Row="2" Margin="3" VerticalAlignment="Center" Text="Last Value" />
				<TextBlock Grid.Row="3" Margin="3" VerticalAlignment="Center" Text="Open Difference(%)" />
				<TextBlock Grid.Row="4" Margin="3" VerticalAlignment="Center" Text="Previous Day Difference(%)" />
				<TextBlock Grid.Row="5" Margin="3" VerticalAlignment="Center" Text="Bid Volume" />
				<TextBlock Grid.Row="6" Margin="3" VerticalAlignment="Center" Text="Bid" />
				<TextBlock Grid.Row="7" Margin="3" VerticalAlignment="Center" Text="Ask" />
				<TextBlock Grid.Row="8" Margin="3" VerticalAlignment="Center" Text="Ask Volume" />
				<TextBlock Grid.Row="9" Margin="3" VerticalAlignment="Center" Text="Gap Difference(%)" />
				<TextBlock Grid.Row="10" Margin="3" VerticalAlignment="Center" Text="Bid Ask Average" />
				<TextBlock Grid.Row="11" Margin="3" VerticalAlignment="Center" Text="Max" />
				<TextBlock Grid.Row="12" Margin="3" VerticalAlignment="Center" Text="Min" />
				<TextBlock Grid.Row="13" Margin="3" VerticalAlignment="Center" Text="Last Volume" />
				<TextBlock Grid.Row="14" Margin="3" VerticalAlignment="Center" Text="Total Volume" />
				<TextBlock Grid.Row="15" Margin="3" VerticalAlignment="Center" Text="Last Operation" />
				<TextBlock Grid.Row="16" Margin="3" VerticalAlignment="Center" Text="Max Open Difference(%)" />
				<TextBlock Grid.Row="17" Margin="3" VerticalAlignment="Center" Text="Min Open Difference(%)" />
				<TextBlock Grid.Row="18" Margin="3" VerticalAlignment="Center" Text="Open Value" />
				<TextBlock Grid.Row="19" Margin="3" VerticalAlignment="Center" Text="Previous Day Value" />
				<TextBlock Grid.Row="20" Margin="3" VerticalAlignment="Center" Text="Status" />
				<TextBlock Grid.Row="21" Margin="3" VerticalAlignment="Center" Text="Date" />

				<TextBlock Grid.Row="0" Grid.Column="1" Margin="3" VerticalAlignment="Center" Text="Visible" HorizontalAlignment="Center" />
				<CheckBox Grid.Row="1" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Symbol.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="2" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Value.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="3" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.OpenDiffPercentage.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="4" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.PreviousDiffPercentage.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="5" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.BidVolume.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="6" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Bid.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="7" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Ask.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="8" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.AskVolume.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="9" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.GapDiffPercentage.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="10" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.BidAskAverage.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="11" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Max.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="12" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Min.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="13" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.LastVolume.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="14" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.TotalVolume.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="15" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.LastOperation.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="16" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.MaxOpenDiffPercentage.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="17" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.MinOpenDiffPercentage.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="18" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.OpenValue.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="19" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.PreviousDayValue.Visible, Mode=TwoWay}" />
				<CheckBox Grid.Row="20" Grid.Column="1" Margin="3" HorizontalAlignment="Center"  VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Status.Visible, Mode=TwoWay}" />
				<TextBlock Grid.Row="0" Grid.Column="2" Margin="3" VerticalAlignment="Center" Text="Column Index" HorizontalAlignment="Center" />
				<TextBox Grid.Row="1" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.Symbol.DisplayIndex}" />
				<TextBox Grid.Row="2" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.Value.DisplayIndex}" />
				<TextBox Grid.Row="3" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.OpenDiffPercentage.DisplayIndex}" />
				<TextBox Grid.Row="4" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.PreviousDiffPercentage.DisplayIndex}" />
				<TextBox Grid.Row="5" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.BidVolume.DisplayIndex}" />
				<TextBox Grid.Row="6" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.Bid.DisplayIndex}" />
				<TextBox Grid.Row="7" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.Ask.DisplayIndex}" />
				<TextBox Grid.Row="8" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.AskVolume.DisplayIndex}" />
				<TextBox Grid.Row="9" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.GapDiffPercentage.DisplayIndex}" />
				<TextBox Grid.Row="10" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.BidAskAverage.DisplayIndex}" />
				<TextBox Grid.Row="11" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.Max.DisplayIndex}" />
				<TextBox Grid.Row="12" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.Min.DisplayIndex}" />
				<TextBox Grid.Row="13" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.LastVolume.DisplayIndex}" />
				<TextBox Grid.Row="14" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.TotalVolume.DisplayIndex}" />
				<TextBox Grid.Row="15" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.LastOperation.DisplayIndex}" />
				<TextBox Grid.Row="16" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.MaxOpenDiffPercentage.DisplayIndex}" />
				<TextBox Grid.Row="17" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.MinOpenDiffPercentage.DisplayIndex}" />
				<TextBox Grid.Row="18" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.OpenValue.DisplayIndex}" />
				<TextBox Grid.Row="19" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.PreviousDayValue.DisplayIndex}" />
				<TextBox Grid.Row="20" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.Status.DisplayIndex}" />
				<TextBox Grid.Row="21" Grid.Column="2" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.Date.DisplayIndex}" />

				<TextBlock Grid.Row="0" Grid.Column="3" Margin="3" VerticalAlignment="Center" Text="View Change" HorizontalAlignment="Center" />
				<CheckBox Grid.Row="2" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Value.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="3" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.OpenDiffPercentage.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="4" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.PreviousDiffPercentage.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="5" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.BidVolume.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="6" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Bid.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="7" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Ask.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="8" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.AskVolume.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="9" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.GapDiffPercentage.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="10" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.BidAskAverage.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="11" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Max.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="12" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Min.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="13" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.LastVolume.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="14" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.TotalVolume.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="15" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.LastOperation.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="16" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.MaxOpenDiffPercentage.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="17" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.MinOpenDiffPercentage.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="18" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.OpenValue.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="19" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.PreviousDayValue.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="20" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Status.NotifyChange, Mode=TwoWay}" />
				<CheckBox Grid.Row="21" Grid.Column="3" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Date.NotifyChange, Mode=TwoWay}" />

				<TextBlock Grid.Row="0" Grid.Column="4" Margin="3" VerticalAlignment="Center" Text="View Arrow" HorizontalAlignment="Center" />
				<CheckBox Grid.Row="2" Grid.Column="4" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Value.DisplayArrow, Mode=TwoWay}" />
				<CheckBox Grid.Row="3" Grid.Column="4" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.OpenDiffPercentage.DisplayArrow, Mode=TwoWay}" />
				<CheckBox Grid.Row="4" Grid.Column="4" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.PreviousDiffPercentage.DisplayArrow, Mode=TwoWay}" />
				<CheckBox Grid.Row="5" Grid.Column="4" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.BidVolume.DisplayArrow, Mode=TwoWay}" />
				<CheckBox Grid.Row="6" Grid.Column="4" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Bid.DisplayArrow, Mode=TwoWay}" />
				<CheckBox Grid.Row="7" Grid.Column="4" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.Ask.DisplayArrow, Mode=TwoWay}" />
				<CheckBox Grid.Row="8" Grid.Column="4" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.AskVolume.DisplayArrow, Mode=TwoWay}" />
				<CheckBox Grid.Row="9" Grid.Column="4" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.GapDiffPercentage.DisplayArrow, Mode=TwoWay}" />
				<CheckBox Grid.Row="10" Grid.Column="4" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.BidAskAverage.DisplayArrow, Mode=TwoWay}" />
				<CheckBox Grid.Row="13" Grid.Column="4" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.LastVolume.DisplayArrow, Mode=TwoWay}" />
				
				<TextBlock Grid.Row="0" Grid.Column="5" Margin="3" VerticalAlignment="Center" Text="Color Value" HorizontalAlignment="Center" />
				<CheckBox Grid.Row="3" Grid.Column="5" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.OpenDiffPercentage.ColorValue, Mode=TwoWay}" />
				<CheckBox Grid.Row="4" Grid.Column="5" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.PreviousDiffPercentage.ColorValue, Mode=TwoWay}" />
				<CheckBox Grid.Row="9" Grid.Column="5" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.GapDiffPercentage.ColorValue, Mode=TwoWay}" />
				<CheckBox Grid.Row="16" Grid.Column="5" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.MaxOpenDiffPercentage.ColorValue, Mode=TwoWay}" />
				<CheckBox Grid.Row="17" Grid.Column="5" Margin="3" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding AllColumnsOptionsVM.MinOpenDiffPercentage.ColorValue, Mode=TwoWay}" />

				<TextBlock Grid.Row="0" Grid.Column="6" Margin="3" VerticalAlignment="Center" Text="Limit (%)" HorizontalAlignment="Center" />
				<TextBox Grid.Row="3" Grid.Column="6" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.OpenDiffPercentage.Limit}" />
				<TextBox Grid.Row="4" Grid.Column="6" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.PreviousDiffPercentage.Limit}" />
				<TextBox Grid.Row="9" Grid.Column="6" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.GapDiffPercentage.Limit}" />
				<TextBox Grid.Row="16" Grid.Column="6" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.MaxOpenDiffPercentage.Limit}" />
				<TextBox Grid.Row="17" Grid.Column="6" Margin="3" HorizontalContentAlignment="Right" Width="{Binding ActualWidth, ElementName=SizeReference, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" Text="{Binding NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ValidatesOnDataErrors=True, Path=AllColumnsOptionsVM.MinOpenDiffPercentage.Limit}" />
			</Grid>
		</Border>

		<UniformGrid Columns="2" HorizontalAlignment="Right" Margin="3,0,6,0" >
			<Button Content="Accept" Margin="3" Padding="12,3,12,3" IsDefault="True" Command="{Binding AcceptCommand}" />
			<Button Content="Cancel" Margin="3" Padding="12,3,12,3" IsCancel="True" Command="{Binding CancelCommand}" />
		</UniformGrid>
	</StackPanel>
</Window>

	